<%@ page import="javax.sql.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html:html>
<HEAD><TITLE>Address Page</TITLE></HEAD>
<BODY>
<html:errors />
<%
String residence = request.getParameter("residence");
session.setAttribute("residence",residence);
String count = "0";
session.setAttribute("count",count);
%>

User Name : <%= session.getAttribute("fullName")%> <p>
Citizenship : <%=session.getAttribute("country")%> <p>
Country of Residence : <%=residence%> <p>
Please enter your address: 
<p>
<%
if(session.getAttribute("country").equals("United States"))
{
%>
<html:form action="/checkAddressR">
Street:
<td><html:text property="street" size="30"/><td>
<p>
City:
<td><html:text property="city" size="30"/><td>
<p>
State:
<td><html:text property="state" size="20"/><td>
<p>
ZipCode:
<td><html:text property="zipCode" size="5"/><td>
<p>
AreaCode:
<td><html:text property="areaCode" size="15"/><td>
<p>
PhoneNumber:
<td><html:text property="phoneNumber" size="15"/><td>
<td><html:submit value="Submit" /></td>
</html:form>
<%
}
else 
{
%>
<html:form action="/checkAddress">
Street:
<td><html:text property="street" size="30"/><td>
<p>
City:
<td><html:text property="city" size="30"/><td>
<p>
CountryCode:
<td><html:text property="countryCode" size="5"/><td>
<p>
ZipCode:
<td><html:text property="zipCode" size="5"/><td>
<p>
AreaCode:
<td><html:text property="areaCode" size="15"/><td>
<p>
PhoneNumber:
<td><html:text property="phoneNumber" size="15"/><td>
<td><html:submit value="Submit" /></td>
</html:form>
<%
}
%>

</BODY>
</html:html>
